<div class="container" style="width:500px;">
	
	<?php echo $this->session->flash(); ?>
	
	<div class="panel panel-primary">
		<div class="panel-heading">
			<h3 class="panel-title">Add New Member</h3>
		</div>
		<div class="panel-body">
			
			<?php echo $this->Form->create(null, array('url' => array('controller' => 'member', 'action' => 'add'))); ?>
			
			<?php echo $this->Form->input('email', array('placeholder' => 'Email', 'required' => true)); ?>
			
			<?php echo $this->Form->input('password', array('placeholder' => 'Default password', 'required' => true)); ?>
			
			<?php
				
				echo $this->Form->input('type', array('label' => false,
				    'options' => array(1 => 'Moderator ', 0 => 'Administrator ')
				));
 
			?>

			<a href="<?php echo $this->webroot; ?>member"><button class="btn btn-danger" type="button">Back</button></a>
			<button class="btn btn-primary" type="submit">Add</button>
			
		<?php echo $this->Form->end(); ?>
	
		</div>
    </div>
</div>